5581a249e89d7fe614a2f1a4496e58004226a323,src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java,Listener,doAccept,#SelectionKey#,389

Before Change



        channel.configureBlocking(false);
        channel.socket().setTcpNoDelay(tcpNoDelay);
        channel.socket().setKeepAlive(tcpKeepAlive);
        SelectionKey readKey = channel.register(selector, SelectionKey.OP_READ);
        c = new Connection(channel, System.currentTimeMillis());
        readKey.attach(c);

After Change


      ServerSocketChannel server = (ServerSocketChannel) key.channel();

      SocketChannel channel;
      while ((channel = server.accept()) != null) {
        channel.configureBlocking(false);
        channel.socket().setTcpNoDelay(tcpNoDelay);
        channel.socket().setKeepAlive(tcpKeepAlive);

        Reader reader = getReader();
        try {